package com.linzt.candy.wxmp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.linzt.candy.common.core.web.domain.BaseEntity;
import com.linzt.candy.wxmp.domain.vo.FileEntity;

import java.util.List;

/**
* @Author linzt
* @Date 2020/12/19 11:03 下午
* @Description 微信公众号图文
* @Version 1.0
*/
@TableName("tb_wx_mp_article")
public class WxMpArticle extends BaseEntity {

    /**
     * ID
     */
    @TableId(type = IdType.AUTO)
    private String id;

    /** 缩略图文件 */
    private List<FileEntity> thumbFile;

    /** 文章文件列表 */
    private List<FileEntity> fileList;

    /** 关联素材表id */
    private String materialId;

    /** 图文消息缩略图的media_id */
    private String thumbMediaId;

    /** 图文消息的标题 */
    private String title;

    /** 图文消息页面的内容，支持HTML标签 */
    private String content;

    /** 图文消息的封面url */
    private String thumbUrl;

    /** 图文消息的作者 */
    private String author;

    /** 在图文消息页面点击“阅读原文”后的页面链接 */
    private String contentSourceUrl;

    /** 图文消息的描述 */
    private String digest;

    /** 是否显示封面，true为显示，false为不显示 */
    private Boolean showCoverPic;

    /** 点击图文消息跳转链接 */
    private String url;

    /** 是否打开评论，0不打开，1打开 */
    private Boolean needOpenComment;

    /** 是否粉丝才可评论，0所有人可评论，1粉丝才可评论 */
    private Boolean onlyFansCanComment;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public List<FileEntity> getThumbFile() {
        return thumbFile;
    }

    public void setThumbFile(List<FileEntity> thumbFile) {
        this.thumbFile = thumbFile;
    }

    public List<FileEntity> getFileList() {
        return fileList;
    }

    public void setFileList(List<FileEntity> fileList) {
        this.fileList = fileList;
    }

    public String getMaterialId() {
        return materialId;
    }

    public void setMaterialId(String materialId) {
        this.materialId = materialId;
    }

    public String getThumbMediaId() {
        return thumbMediaId;
    }

    public void setThumbMediaId(String thumbMediaId) {
        this.thumbMediaId = thumbMediaId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getThumbUrl() {
        return thumbUrl;
    }

    public void setThumbUrl(String thumbUrl) {
        this.thumbUrl = thumbUrl;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getContentSourceUrl() {
        return contentSourceUrl;
    }

    public void setContentSourceUrl(String contentSourceUrl) {
        this.contentSourceUrl = contentSourceUrl;
    }

    public String getDigest() {
        return digest;
    }

    public void setDigest(String digest) {
        this.digest = digest;
    }

    public Boolean getShowCoverPic() {
        return showCoverPic;
    }

    public void setShowCoverPic(Boolean showCoverPic) {
        this.showCoverPic = showCoverPic;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public Boolean getNeedOpenComment() {
        return needOpenComment;
    }

    public void setNeedOpenComment(Boolean needOpenComment) {
        this.needOpenComment = needOpenComment;
    }

    public Boolean getOnlyFansCanComment() {
        return onlyFansCanComment;
    }

    public void setOnlyFansCanComment(Boolean onlyFansCanComment) {
        this.onlyFansCanComment = onlyFansCanComment;
    }

    @Override
    public String toString() {
        return "WxMpArticle{" +
                "id='" + id + '\'' +
                ", thumbFile=" + thumbFile +
                ", fileList=" + fileList +
                ", materialId='" + materialId + '\'' +
                ", thumbMediaId='" + thumbMediaId + '\'' +
                ", title='" + title + '\'' +
                ", content='" + content + '\'' +
                ", thumbUrl='" + thumbUrl + '\'' +
                ", author='" + author + '\'' +
                ", contentSourceUrl='" + contentSourceUrl + '\'' +
                ", digest='" + digest + '\'' +
                ", showCoverPic=" + showCoverPic +
                ", url='" + url + '\'' +
                ", needOpenComment=" + needOpenComment +
                ", onlyFansCanComment=" + onlyFansCanComment +
                '}';
    }
}